import random

money = 10000
for p in range(1, 21):
    jixiao = random.randint(1, 10)
    if jixiao > 5:
        if money > 0:
            money -= 1000
            print("员工编号:", p, "发1000元")
        else:
            print("工资发完了，下个月再发")
            break
    else:
        print("员工编号:", p, "绩效不够")
print(f"剩余工资{money}")
